package exception;

import javafx.beans.property.IntegerPropertyBase;

public class ExceptionApiDemo {
    public static void main(String[] args) {
        System.out.println("main方法开始");
        try{
            String line="abc";
            System.out.println(Integer.parseInt(line));

        }
        catch(NumberFormatException e){
            e.printStackTrace();
            String message=e.getMessage();
            System.out.println("message:"+message);
        }
        System.out.println("main方法结束");

}
}
